package com.stud.seckill.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.stud.seckill.entity.UserEntity;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Libra
 * @since 2024-03-29
 */
public interface UserService extends IService<UserEntity> {

    /**
     * 新增
     * @param user
     */
    void add(UserEntity user);

    /**
     * 查询
     * @param mobile
     * @return
     */
    UserEntity get(String mobile);

    /**
     * 登录成功
     * @param userId
     */
    void loginSuccess(Long userId);

}
